<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ResLoader</title>
    <script src="../../dist/dist_v1.0.1.js"></script>
</head>
<body>
<script>
    window.onload = function () {
        let p1 = engine.resLoader.loadObj("../assets/monkey.obj");
        let p2 = engine.resLoader.loadImage("../assets/ic_launcher.png");
        let p3 = engine.resLoader.loadText("../assets/monster.md5mesh");
        Promise.all([p1,p2,p3]).then((arr)=>{
            console.log('==============all loaded!');

//            engine.ObjParser.loadMesh(arr[0])
            let md5model = engine.Md5Parser.parse(arr[2]);
            console.log(JSON.stringify(md5model))

        });
    }
</script>
</body>
</html>
